{% extends "BackendBundle:User:layout.html.twig" %}

{% block fos_user_content %}
{% include 'BackendBundle:Default:flashAlerts.html.twig'%}

<form action="{{ path("login_check") }}" method="post">
    <div class="logo"><img src="{{ asset('images/login/24.png') }}" alt="" />
    </div>
    <div id="block">
        <div class="form">
            <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
            <p class="login-box">Iniciar Sesión</p>
            <div>
                <label class="labelInput" for="username">Usuario</label>
                <input class="inputText" type="text" id="username" name="_username" value="{{ last_username }}" />

                <label class="labelInput" for="password">Contrase&ntilde;a</label>
                <input class="inputText" type="password" id="password" name="_password" />
            </div>
            <div>
                <label class="labelCeck" for="remember_me">
                    <input class="inputCheck" type="checkbox" id="remember_me" name="_remember_me" value="on" />
                    Recordar
                </label>
                <a class="resetting" href="{{ path('user_request') }}"> Recuperar Contraseña </a>
            </div>
            <div>
                <input type="submit" class="btn" id="_submit" name="_submit" value="Ingresar" />
            </div>
            <br>
            {% if error %}
                <div class="divError">
                    <div class="alert alert-error">
                        <a class="close" data-dismiss="alert">×</a>
                        <strong>{{ error.message }}</strong> 
                    </div>
                </div>
            {% endif %} 
            <i class="ctop"> </i>
            <i class="cbottom"> </i>
        </div>
    </div>
</form>
{% endblock fos_user_content %}